package com.ali;

import com.ali.service.TestService;
import com.ali.service.impl.TestServiceImpl;
import rpc.netty.server.MyNettyServer;
import rpc.register.MyRegister;

public class ProviderMain {
    public static void main(String[] args) {
        String hostname = "127.0.0.1";
        int port = 8080;
        //服务注册
        MyRegister.register(TestService.class, TestServiceImpl.class, hostname, port);

        MyNettyServer.start(port);
    }
}
